package com.ecoolex.ying.space.ws;

import java.util.List;
import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.ying.space.entity.UserWorksMarkting;
import com.ecoolex.ying.space.entity.UserWorksMarktingDetail;
import com.ecoolex.ying.space.pojo.AddUserWorksMarktingDetailDTO;

public interface UserWorksMarktingService {

	UserWorksMarkting get(Integer marktingId);
	
	Pagination<UserWorksMarkting> query(Page page);
	
	UserWorksMarkting add(UserWorksMarkting record,String createUser) throws BizException;
	
	UserWorksMarkting edit(UserWorksMarkting record,String updateUser) throws BizException;
	
	void deleteMarkting(UserWorksMarkting record,String updateUser) throws BizException;
	
	UserWorksMarktingDetail getDetail(Integer id);
	
	UserWorksMarktingDetail getByMarktingIdAndWorksId(Integer marktingId,Integer worksId);
	
	Pagination<UserWorksMarktingDetail> queryDetailByMarktingId(Integer marktingId,Page page);
	
	void addDetail(Integer marktingId,List<AddUserWorksMarktingDetailDTO> detailList,String createUser) throws BizException;

	void editDetail(UserWorksMarktingDetail record,String updateUser) throws BizException;
	
	void delDetail(UserWorksMarktingDetail record,String updateUser) throws BizException;
	
}
